package cn.shop.cloud.web.vo;


import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @program: work
 * @ClassName LoginVo
 * @description:
 * @author: 李尧坤
 * @create: 2024−12-19 20:23
 * @Version 1.0
 **/
public class LoginVo implements Serializable {

    //    data: {"username":$("#mobile").val(),"password":$("#password").val()},
    @Pattern(regexp = "1[3568]\\d{9}",message = "手机号格式不正确1")
    private String username;

    @NotEmpty(message = "密码不能为空2")
    private String password;

    public LoginVo() {
    }

    public LoginVo(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}

